// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.PurchaseRgoodsOrder;
import com.fowo.api.model.purchase.rgoods.order.PurchaseRgoodsOrderItemVo;
import com.fowo.api.model.purchase.rgoods.order.PurchaseRgoodsOrderSearchParamPo;
import com.fowo.api.model.purchase.rgoods.order.PurchaseRgoodsOrderVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PurchaseRgoodsOrderMapper
  extends BaseMapper<PurchaseRgoodsOrder> {
  Page<PurchaseRgoodsOrderItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  List<OptionItem<PurchaseRgoodsOrderItemVo>> searchOptions(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  List<PurchaseRgoodsOrderItemVo> search(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") PurchaseRgoodsOrderSearchParamPo search);
  Long getIdByRemark(@Param("remark") String remark);

  List<Long> getIdsByRemark(@Param("list") List<String> list);

  String getRemarkById(@Param("id") Long id);

  List<Map<String, Object>> getRemarkByIds(@Param("ids") List<Long> ids);
  PurchaseRgoodsOrderVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<PurchaseRgoodsOrderItemVo> allRetrunOrder(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allRetrunOrderIds(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取全部的总数
   */
  Long allRetrunOrderCount(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 全部分页
   */
  Page<PurchaseRgoodsOrderItemVo> allRetrunOrderPage(
    @Param("page") Page page,
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  Date allRetrunOrderLastUpdateTime(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  /**
   * 待审批
   */
  List<PurchaseRgoodsOrderItemVo> pendingApproval(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取待审批编号列表
   */
  List<Long> pendingApprovalIds(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取待审批的总数
   */
  Long pendingApprovalCount(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 待审批分页
   */
  Page<PurchaseRgoodsOrderItemVo> pendingApprovalPage(
    @Param("page") Page page,
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  Date pendingApprovalLastUpdateTime(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  /**
   * 已处理
   */
  List<PurchaseRgoodsOrderItemVo> orderProcessed(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取已处理编号列表
   */
  List<Long> orderProcessedIds(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取已处理的总数
   */
  Long orderProcessedCount(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 已处理分页
   */
  Page<PurchaseRgoodsOrderItemVo> orderProcessedPage(
    @Param("page") Page page,
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  Date orderProcessedLastUpdateTime(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  /**
   * 已作废
   */
  List<PurchaseRgoodsOrderItemVo> orderVoided(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取已作废编号列表
   */
  List<Long> orderVoidedIds(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 获取已作废的总数
   */
  Long orderVoidedCount(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );

  /**
   * 已作废分页
   */
  Page<PurchaseRgoodsOrderItemVo> orderVoidedPage(
    @Param("page") Page page,
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
  Date orderVoidedLastUpdateTime(
    @Param("search") PurchaseRgoodsOrderSearchParamPo search
  );
}
